package com.cskaoyan.catmall.model.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author: 逍遥子
 * @Date: 2022/01/07/16:49
 * @Description:
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class GoodCategoryVo {

    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<ListDTO> list;

    @NoArgsConstructor
    @Data
    public static class ListDTO {
        private Integer id;
        private String name;
        private String keywords;
        private String desc;
        private String iconUrl;
        private String picUrl;
        private String level;
        private List<ChildrenDTO> children;

        @NoArgsConstructor
        @Data
        public static class ChildrenDTO {
            private Integer id;
            private String name;
            private String keywords;
            private String desc;
            private String iconUrl;
            private String picUrl;
            private String level;
        }
    }
}
